package com.kxmall.web.controller.statistics;

import com.kxmall.common.core.controller.BaseAppController;
import com.kxmall.common.core.domain.R;
import com.kxmall.count.countVO.LargeScreenVO;
import com.kxmall.dashboard.service.StatisticsBizService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * app统计接口
 *
 * @author kxmall
 * @date 2023-08-27
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/app/sta")
public class AppStatisticsController extends BaseAppController {

    private final StatisticsBizService statisticsBizService;


    /**
     * 卡片统计
     */
    @PostMapping("/card")
    public R<LargeScreenVO> getAppCardData() {
        return R.ok(statisticsBizService.getAppCardData());
    }

}
